package com.ruoyi.chengkao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.chengkao.mapper.CkGraduationTypeMapper;
import com.ruoyi.chengkao.domain.CkGraduationType;
import com.ruoyi.chengkao.service.ICkGraduationTypeService;

/**
 * 毕业类型信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2025-03-10
 */
@Service
public class CkGraduationTypeServiceImpl implements ICkGraduationTypeService 
{
    @Autowired
    private CkGraduationTypeMapper ckGraduationTypeMapper;

    /**
     * 查询毕业类型信息
     * 
     * @param id 毕业类型信息主键
     * @return 毕业类型信息
     */
    @Override
    public CkGraduationType selectCkGraduationTypeById(Long id)
    {
        return ckGraduationTypeMapper.selectCkGraduationTypeById(id);
    }

    @Override
    public List<CkGraduationType> selectCkGraduationTypeAll()
    {
        return ckGraduationTypeMapper.selectCkGraduationTypeAll();
    }

    /**
     * 查询毕业类型信息列表
     * 
     * @param ckGraduationType 毕业类型信息
     * @return 毕业类型信息
     */
    @Override
    public List<CkGraduationType> selectCkGraduationTypeList(CkGraduationType ckGraduationType)
    {
        return ckGraduationTypeMapper.selectCkGraduationTypeList(ckGraduationType);
    }

    /**
     * 新增毕业类型信息
     * 
     * @param ckGraduationType 毕业类型信息
     * @return 结果
     */
    @Override
    public int insertCkGraduationType(CkGraduationType ckGraduationType)
    {
        return ckGraduationTypeMapper.insertCkGraduationType(ckGraduationType);
    }

    /**
     * 修改毕业类型信息
     * 
     * @param ckGraduationType 毕业类型信息
     * @return 结果
     */
    @Override
    public int updateCkGraduationType(CkGraduationType ckGraduationType)
    {
        return ckGraduationTypeMapper.updateCkGraduationType(ckGraduationType);
    }

    /**
     * 批量删除毕业类型信息
     * 
     * @param ids 需要删除的毕业类型信息主键
     * @return 结果
     */
    @Override
    public int deleteCkGraduationTypeByIds(Long[] ids)
    {
        return ckGraduationTypeMapper.deleteCkGraduationTypeByIds(ids);
    }

    /**
     * 删除毕业类型信息信息
     * 
     * @param id 毕业类型信息主键
     * @return 结果
     */
    @Override
    public int deleteCkGraduationTypeById(Long id)
    {
        return ckGraduationTypeMapper.deleteCkGraduationTypeById(id);
    }
}
